package org.mspring.mlog.api.spider.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author Gao Youbo
 * @since 2014年5月16日
 */
@Entity
@Table(name = "spider_image")
public class SpiderImage implements Serializable {

    private static final long serialVersionUID = -3723283380627266197L;

    private Long id;
    private String imageKey;
    private String originUrl;
    private long spiderPost;
    private Date createTime;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(unique = true, nullable = false)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(nullable = false)
    public String getImageKey() {
        return imageKey;
    }

    public void setImageKey(String imageKey) {
        this.imageKey = imageKey;
    }

    @Column(nullable = false)
    public String getOriginUrl() {
        return originUrl;
    }

    public void setOriginUrl(String originUrl) {
        this.originUrl = originUrl;
    }

    @Column(nullable = false)
    public long getSpiderPost() {
        return spiderPost;
    }

    public void setSpiderPost(long spiderPost) {
        this.spiderPost = spiderPost;
    }

    @Column(nullable = false)
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

}
